package com.qf.kady.ssm.mapper;

import com.qf.kady.ssm.pojo.Book;
import com.qf.kady.ssm.pojo.Reader;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * \* Created with IntelliJ IDEA.
 * \* User: kady
 * \* Date: 2021/4/22
 * \* Time: 13:50
 * \* 千峰JAVA2101班
 * \* Description: 读者Dao映射
 * \
 */

@Repository
public interface ReaderMapper {
    List<Reader> getListByCondition(String keyword);
    Reader selectReaderByCondition(@Param("readerId") Long readerId,@Param("readerName") String readerName);
    boolean addReader(Reader reader);
    boolean updateReaderById(Reader reader);
    boolean deleteReaderById(Long readerId);
}
